.class final Lkairo/android/ui/p;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field final synthetic a:Lkairo/android/ui/IApplication;


# direct methods
.method constructor <init>(Lkairo/android/ui/IApplication;)V
    .locals 0

    iput-object p1, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5

    const/16 v4, 0x64

    const/4 v3, 0x0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "android.intent.action.BATTERY_CHANGED"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    const-string v1, "status"

    invoke-virtual {p2, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iput v1, v0, Lkairo/android/ui/IApplication;->c:I

    const-string v0, "level"

    invoke-virtual {p2, v0, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    const-string v1, "scale"

    invoke-virtual {p2, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    iget-object v2, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    mul-int/lit8 v0, v0, 0x64

    div-int/2addr v0, v1

    iput v0, v2, Lkairo/android/ui/IApplication;->b:I

    iget-object v0, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    iget v0, v0, Lkairo/android/ui/IApplication;->b:I

    if-gez v0, :cond_0

    iget-object v0, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    iput v3, v0, Lkairo/android/ui/IApplication;->b:I

    :cond_0
    iget-object v0, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    iget v0, v0, Lkairo/android/ui/IApplication;->b:I

    if-le v0, v4, :cond_1

    iget-object v0, p0, Lkairo/android/ui/p;->a:Lkairo/android/ui/IApplication;

    iput v4, v0, Lkairo/android/ui/IApplication;->b:I

    :cond_1
    return-void
.end method
